package com.pattern.structural.adaptor;

/**
 * @Description class adapter to implement EUsedElectirity.
 * @Author Ping
 * @Date 2022/3/28 15:52
 **/
public class EClassAdapter extends HomeUsedElectricity implements EUsedElectricity {
    @Override
    public void chargedWith20V() {
        // adapting logic
        System.out.println("before provided 220v") ;
        this.provide220V();
        System.out.println("adapting 220v to 20V") ;
    }
}
